<template>
	<!-- 路由输出 -->
	<router-view></router-view>
</template>
<script>
export default {
	created() {
	
		let roleId = localStorage.getItem('roleId')
		if(roleId){
			this.$store.dispatch('menu/saveMenu', roleId).then(() => {
				this.$router.push({ path: '/home' }) // 3. 跳转
			})
		}
	},
}
</script>
<style></style>
